package com.deshi.shop.cartorder.controller;

import com.deshi.shop.cartorder.client.ProductClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/cartorder")
public class TestController {

    @Autowired
    ProductClient productClient;

    @RequestMapping(value = "/hello",method = RequestMethod.GET)
    @ResponseBody
    public String test(){
        String hello = productClient.hello();
        return "cartorder...."+hello;
    }

}
